package kr.hskim.user;

import java.sql.Date;

import kr.hskim.common.ParentVO;

public class UserVO extends ParentVO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * info_user table
	 */
	private String user_id;
	private String user_nm;
	private String user_pw;
	private String user_email;
	private Date   last_access_dm;
	private String use_yn;
	
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_nm() {
		return user_nm;
	}
	public void setUser_nm(String user_nm) {
		this.user_nm = user_nm;
	}
	public String getUser_pw() {
		return user_pw;
	}
	public void setUser_pw(String user_pw) {
		this.user_pw = user_pw;
	}
	public String getUser_email() {
		return user_email;
	}
	public void setUser_email(String user_email) {
		this.user_email = user_email;
	}
	public Date getLast_access_dm() {
		return last_access_dm;
	}
	public void setLast_access_dm(Date last_access_dm) {
		this.last_access_dm = last_access_dm;
	}
	public String getUse_yn() {
		return use_yn;
	}
	public void setUse_yn(String use_yn) {
		this.use_yn = use_yn;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((user_id == null) ? 0 : user_id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserVO other = (UserVO) obj;
		if (user_id == null) {
			if (other.user_id != null)
				return false;
		} else if (!user_id.equals(other.user_id))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "UserVO [user_id=" + user_id + ", user_nm=" + user_nm
				+ ", user_pw=" + user_pw + ", user_email=" + user_email
				+ ", last_access_dm=" + last_access_dm + ", use_yn=" + use_yn
				+ ", super.toString()=" + super.toString()
				+ "]";
	}	
}
